package org.example.bookingsystem.service;

import org.example.bookingsystem.mapper.UserMapper;
import org.example.bookingsystem.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;
    public UserInfo queryByUid(int uid) {
        return userMapper.queryByUid(uid);
    }
    public UserInfo queryByUserName(String userName) {
        return userMapper.queryByUserName(userName);
    }
}
